package com.lg.patter.behavior.observed.ex.myex;

/**
 * @author by Mr. Li 2020/5/8 22:33
 */
public class Main {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();

        MyObserver myObserver = new MyObserver();
        // 注册
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        weatherData.setWeather("多云");
    }
}
